<template>
    <transition name="loadmask" >
        <div id="downloadmask" class="align-center" :style="`background:${options.background}`">
            <div :style="`color:${options.color}`" class="tip-container">
                <span v-for="(v,i) in tipsArry" :key="i" class="loading-text-animation" :style="`animation-delay:${i*0.1}s`">{{v}}</span>
                . . .
            </div>
        </div>
    </transition>
</template>

<script>
export default {
    data () {
        return {
            options: {},
            tipsArry: [],
            isclose: false,
        }
    },
}
</script>

<style lang="scss">
.loadmask-enter-active,.loadmask-leave-active{
    transition: all 0.5s;
}
.loadmask-enter,.loadmask-leave-to{
    display: none;
}
#downloadmask {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 99999;
    height: 100vh;
    width: 100vw;
    .tip-container{
        margin-top: 10px;
    }
    .el-progress__text{
        color: #fff;
    }
	.anti-clockwise{
		.el-progress-circle{
			transform: rotate(180deg);
		}
	}
    .loading-text-animation{
        display: inline-block;
        animation:loadiTips 1s ease infinite ;
    }
    @keyframes loadiTips {
        0%{
            transform: translateY(0);
        }
        50%{
            transform: translateY(-3px);
        }
        100%{
            transform: translateY(3px);
        }
    }

}
</style>
